package cn.i5.remoteinvocationcontrol.config;

import cn.i5.remoteinvocationcontrol.constant.ControlWay;
import cn.i5.remoteinvocationcontrol.constant.ServicesName;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;
import java.util.Map;

/**
 * 装载配置
 *
 * @author mc0710
 */
@Component
@ConfigurationProperties(prefix = "remote-invocation-control-config")
@Data
public class RemoteInvocationControlConfig {

    private Map<ControlWay, List<String>> controlWayMap;

    private Map<ServicesName, List<String>> servicesNameMap;

}
